#!/usr/bin/python
# filename: Dice.py

import random
class Dice:
	def __init__( self ):
		self.__digit = 0
	def play( self ):
		self.__digit = random.randint( 1, 6 )
	def getDigit( self ):
		return self.__digit

Ad = {	1	: 0,
	2	: 0,
	3	: 0,
	4	: 0,
	5	: 0,
	6	: 0
}

dice = Dice()
for i in range( 1, 7 ):
	dice.play()
	Ad[dice.getDigit()] += 1

for value, num in Ad.items():
	print value, 'has', num, 'times'
